package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.City;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface CityService {

    Result<Map<String, List<String>>> listAll();

    Result<IPage<City>> listPage(String province, String city, Integer status, Integer pageNo, Integer pageSize);

    Result<City> getById(Integer id);

    Result add(City sale);

    Result updateById(City sale);

    Result deleteByIds(Set<Integer> ids);

    void genData();

}
